console.log('index.js加载了')

import './css/reset.css'
import './css/base.css'

import {sayHello} from  './print.js'

sayHello()

if (module.hot) {
  module.hot.accept('./print.js', function() {
    //hotmodule更新时触发
    console.log('print.js更新了');
    sayHello()
  })
}